<?php
include_once 'Zend/Db/Table.php';

Zend_Db_Table::setDefaultAdapter($db);

include_once 'Account.php';
include_once 'Program.php';
include_once 'Auth.php';

class Ads extends Zend_Db_Table 
{
	protected $_name = 'partners_text';
	
	public function addText($newText)
	{	
		if ($this->insert($newText))
		{
			return true;
		}
		return false;
	}
	
	public function addBanner($newBanner)
	{
		$this->_name = 'partners_banner';
		if ($this->insert($newBanner))
		{
			return true;
		}
		return false;
	}
	public function deleteText($programId)
	{
		$this->delete("text_programid = $programId");
	}
	public function deleteBanner($programId)
	{
		$this->_name = 'partners_banner';
		$this->delete("banner_programid = $programId");
	}
}
?>